﻿<%@ Page Language="C#" MasterPageFile="~/Enterprise/Master/AdminMaster.Master" AutoEventWireup="true"
    CodeBehind="ReturnAcceptz.aspx.cs" Inherits="HZ.DrugTrade.Web.Enterprise.ReturnManage.ReturnAcceptz"
    Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="tabnav">
        <ul>
            <li><a href="ReturnUnConfirm.aspx?strID=<%=str_ReturnSerialID%>">单内未确认</a></li>
            <li class="active"><a href="javascript:void(0);">单内已接受</a></li>
            <li><a href="ReturnRefuse.aspx?strID=<%=str_ReturnSerialID%>">单内已拒绝</a></li>
        </ul>
    </div>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">
                                产品名称：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtProdcutname" runat="server" AutoPostBack="True"></asp:TextBox>
                            </td>
                           <td align="right">
                                采购医疗机构：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtHospitalName" runat="server"></asp:TextBox>
                            </td>
                             <td align="right">
                                规格型号：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtOutLookc" runat="server"></asp:TextBox>
                            </td>
                            <td align="left" rowspan="3">
                                &nbsp;
                                <hz:HzButton ID="btnSelect" runat="server" Text="查  询" CssClass="btn" OnClick="btnSelect_Click" />
                            </td>
                        </tr>
                        <tr>
                           
                            <td align="right">
                                生产企业：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtCompanyName" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                &nbsp;退货时间：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txt01" runat="server" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
                                    Width="62px"></asp:TextBox>-<asp:TextBox ID="txt02" runat="server" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
                                        Width="62px"></asp:TextBox>
                            </td>
                            <td align="right">拼音码：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtpinyincode" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            
                            
                            <td align="right">
                                <asp:Label Text="项目：" ID="lblProjectid" runat="server" />
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="ddlProjectid" runat="server">
                                    <asp:ListItem Value="0002">2014年内蒙古自治区网上高值医用耗材阳光采购项目</asp:ListItem>
                                    <asp:ListItem Value="0001">2012年内蒙古自治区网上医用耗材采购项目</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwreturn" class="mainlist" runat="server" AutoGenerateColumns="False"
        EmptyDataText="暂无符合条件的数据">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex-1) %></ItemTemplate>
                <HeaderStyle Width="28px" />
            </asp:TemplateField>
            <asp:BoundField DataField="BatchRecordID" HeaderText="批号" ReadOnly="true" Visible="false" />
            <asp:BoundField DataField="ReturnName" HeaderText="退货单名称" ReadOnly="true" />
            <%--<asp:BoundField DataField="RetrunPrice" HeaderText="退货价格" ReadOnly="true" />--%>
            <asp:TemplateField HeaderText="退货价格">
                <ItemTemplate>
                    <asp:Label ID="lblRetrunPrice" runat="server" Text='<%#HZ.DrugTrade.Web.Function.FormPrice(Eval("ProjectID"), Eval("RetrunPrice")) %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="ReturnCount" HeaderText="退货数量" ReadOnly="true" />
            <asp:BoundField DataField="HospitalName" HeaderText="医疗机构名称" ReadOnly="true" />
            <asp:BoundField DataField="GoodsName" HeaderText="产品名称" ReadOnly="true" />
          
             <asp:BoundField DataField="Material" HeaderText="材质" NullDisplayText="无" />
            <asp:BoundField DataField="Outlookc" HeaderText="规格型号" ReadOnly="true" />
           
            <asp:BoundField DataField="Unit" HeaderText="单位" ReadOnly="true" />
            <asp:BoundField DataField="CompanyName_sc" HeaderText="生产企业" ReadOnly="true" />
            <asp:TemplateField HeaderText="状态">
                <ItemTemplate>
                    <%#Eval("ReturnState").ToString()=="0"?"未确认":Eval("ReturnState").ToString()=="1"?"已接受":"已拒绝"%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="ReturnTime" HeaderText="退货时间" ReadOnly="true" DataFormatString="{0:yyyy-MM-dd}" />
            <asp:TemplateField HeaderText=" ">
                <HeaderTemplate>
                    <input id="addTable_chkAll" name="chkAll" type="checkbox" onclick="SelectAllCheckboxes(this,'ctl00_ContentPlaceHolder1_gvwreturn','addTable_chkAll'); " />
                </HeaderTemplate>
                <ItemTemplate>
                    <input type="checkbox" name="bSelect" id="bSelect" value='<%#Eval("ReturnSerialDetailID")%>'
                        onclick="chkChecked(this,'ctl00_ContentPlaceHolder1_gvwreturn','addTable_chkAll');"
                        runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
        </webdiyer:AspNetPager>
    </div>
    <div class="listip">
        <ul>
            <li>
            提示： </li>
        </ul>
    </div>
    <div class="listctrl">
        <hz:HzButton ID="refuse" runat="server" OnClick="Refuse_Click" Text="拒绝退货" Visible="false" ToolTip="拒绝退货"
            OnClientClick="return checkSelectedItems('ctl00_ContentPlaceHolder1_gvwreturn','请至少选择一条信息！') && confirm('确定拒绝？');"
            CssClass="btn" OperateType="确认" />
        <hz:HzButton ID="btnBack" runat="server" Text="返  回" CssClass="btn" OnClick="btnBack_Click" />
    </div>
</asp:Content>
